package com.project.bean;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

/**
 * (User实体类)
 */
@TableName("t_user")
public class UserBean implements Serializable {
    /**用户编号*/
    @TableId(value = "pk_userId",type = IdType.AUTO)
    private Integer id;
    /**用户名*/
    @TableField("u_name")
    private String name;
    /**密码*/
    @TableField("u_pwd")
    private String pwd;
    /**权限*/
    @TableField("u_level")
    private String level;

    public UserBean() {
    }

    public UserBean(String name, String pwd, String level) {
        this.name = name;
        this.pwd = pwd;
        this.level = level;
    }

    @Override
    public String toString() {
        return "UserBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", pwd='" + pwd + '\'' +
                ", level='" + level + '\'' +
                "}\n";
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }
}